package com.zhou.imaotai.utils.web;

import javax.servlet.ServletRequest;

/**
 * @author lcz
 * @desc 专属于 web 包的工具类
 * @mail lcz_0130@163.com
 * @date 2024/03/26
 */
public class WebFrameworkUtils {

    private static final String REQUEST_ATTRIBUTE_LOGIN_USER_ID = "login_user_id";

    public static void setLoginUserId(ServletRequest request, Long userId) {
        request.setAttribute(REQUEST_ATTRIBUTE_LOGIN_USER_ID, userId);
    }

}
